﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DomainDriver.DomainModeling.DomainObjects;
using DomainDriver.DomainModeling.DomainModels;
using DomainDriver.DomainModeling.Events;

namespace DomainDriver.DomainModeling.StorageManagers
{
    public interface IBatchPersistableStorageManager<KEY, KEYED_DOMAIN_OBJECT> : IStorageManager<KEY, KEYED_DOMAIN_OBJECT>
        where KEYED_DOMAIN_OBJECT : IKeyedDomainObject<KEY, KEYED_DOMAIN_OBJECT>
    {
        void LoadingFromDataSource(IDomainModel sender, EventArgs args);
        void PersistingToDataSource(IDomainModel sender, EventArgs args);
    }
}